package com.sffzh.pojo;

import java.util.Date;

import com.sffzh.util.format.DateUtil;
import com.sffzh.util.format.JsonVersion;

public class User {
	@JsonVersion({"aaaa","uuuu"})
	private int userID;
	@JsonVersion("aaaa")
	private String name;
	@JsonVersion("uuuu")
	private String nickname;
	private String password;
	private String phone;
	private String email;
	private String IDNumber;
	private int	age;
	private Date birthday;
	private String birthdayStr;
	private Date registDate;
	private String registDateStr;
	private int sex;//1=‘男’2=‘女’0=‘未定义’
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getNickname() {
		return nickname;
	}
	public void setNickname(String nickname) {
		this.nickname = nickname;
	}
	public String getPassword() {
		return password;
	}
	public void setPassword(String password) {
		this.password = password;
	}
	public String getPhone() {
		return phone;
	}
	public void setPhone(String phone) {
		this.phone = phone;
	}
	public String getEmail() {
		return email;
	}
	public void setEmail(String email) {
		this.email = email;
	}
	public String getIDNumber() {
		return IDNumber;
	}
	public void setIDNumber(String iDNumber) {
		IDNumber = iDNumber;
	}
	public int getAge() {
		return age;
	}
	public void setAge(Integer age) {
		if(age!=null)
		this.age = age;
	}
	public Date getBirthday() {
		return birthday;
	}
	public void setBirthday(Date birthday) {
		if(birthday!=null){
			this.birthday = birthday;
			this.birthdayStr=DateUtil.formatDateTime(birthday);
		}
	}
	public String getBirthdayStr() {
		return birthdayStr;
	}
	public void setBirthdayStr(String birthdayStr) {
		this.birthdayStr = birthdayStr;
	}
	public Date getRegistDate() {
		return registDate;
	}
	public void setRegistDate(Date registDate) {
		this.registDate = registDate;
	}
	public String getRegistDateStr() {
		return registDateStr;
	}
	public void setRegistDateStr(String registDateStr) {
		this.registDateStr = registDateStr;
	}
	public int getSex() {
		return sex;
	}
	public void setSex(Integer sex) {
		if(sex!=null)this.sex = sex;
	}
	public int getUserID() {
		return userID;
	}
	public void setUserID(int userID) {
		this.userID = userID;
	}
	
				
}
